package po

import "time"

var (
	RoomInfoTB = "room_info"
)

var (
	//房间类型
	RoomTypePersonal = 1 //个人房间
	RoomTypeGuild    = 2 //公会房间

	//房间状态
	RoomStateOpen   = 1 //公开
	RoomStateHidden = 2 //隐藏
	RoomStateDelete = 3 //删除

	//麦位类型
	RoomMicType1 = 1 //1+1
	RoomMicType2 = 2 //2+4
	RoomMicType3 = 3 //2+8

	//排麦开关
	RoomMicApplyClose = 1 //关闭
	RoomMicApplyOpen  = 2 //开启

	//心动开关
	RoomHeartClose = 1 //关闭
	RoomHeartOpen  = 2 //开启

	//热门开关
	RoomHotClose = 1 //关闭
	RoomHotOpen  = 2 //开启

	//周星开关
	RoomStarClose = 1 //关闭
	RoomStarOpen  = 2 //开启

	//聊天公屏开关
	RoomChatClose = 1 //关闭
	RoomChatOpen  = 2 //开启

	//房间热度值
	RoomHotValue = 1 //热度值
)

type (

	//命名与表名保持一致
	RoomInfo struct {
		RoomId              int       `json:"room_id"`               //自增id,内部房间id
		ExteriorRoomId      int       `json:"exterior_room_id"`      //房间id，用户可见唯一标识
		RoomName            string    `json:"room_name"`             //房间名称
		RoomPassword        string    `json:"room_password"`         //房间密码
		RoomOwnerId         string    `json:"room_owner_id"`         //房间拥有者（用户uuid）
		RoomGuildId         string    `json:"room_guild_id"`         //所属公会id
		RoomType            int       `json:"room_type"`             //房间类型1：个人房间 2：公会房间
		RoomTopic           int       `json:"room_topic"`            //房间标签id
		RoomMicType         int       `json:"room_mic_type"`         //麦位类型 1:1+1 2:2+4 3:2+8
		RoomSoundId         int       `json:"room_sound_id"`         //房间音质id
		RoomBulletin        string    `json:"room_bulletin"`         //房间公告
		RoomDescription     string    `json:"room_description"`      //房间玩法描述
		RoomImage           string    `json:"room_image"`            //房间头像
		RoomBackgroundImage string    `json:"room_background_image"` //房间背景图片
		RoomState           int       `json:"room_state"`            //房间状态1：公开 2：隐藏 3：删除
		RoomHot             int       `json:"room_hot"`              //房间热度值
		IsMicApply          int       `json:"is_mic_apply"`          //排麦开关1：关闭 2：开启
		IsHeart             int       `json:"is_heart"`              //心动开关1：关闭 2：开启
		IsHot               int       `json:"is_hot"`                //热门开关1：关闭 2：开启
		IsStar              int       `json:"is_star"`               //周星开关1：关闭 2：开启
		IsChat              int       `json:"is_chat"`               //聊天公屏开关 1：关闭 2：开启
		CreateTime          time.Time `json:"create_time"`           //带时区的时间戳
		UpdateTime          time.Time `json:"update_time"`           //带时区的时间戳
		DeleteTime          time.Time `json:"delete_time"`           //带时区的时间戳
	}
)
